﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Peninsula.Utility.Extensions
{
    public static class LongExtensions
    {
        public static DateTime GetTime(this long timeStamp)
        {
            DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
            //TimeSpan toNow = new TimeSpan(timeStamp);
            return dtStart.AddSeconds(timeStamp);
        }
    }
}
